<html>
<head>
<title>TestNG:  group包测试</title>
<link href="../testng.css" rel="stylesheet" type="text/css" />
<link href="../my-testng.css" rel="stylesheet" type="text/css" />

<style type="text/css">
.log { display: none;} 
.stack-trace { display: none;} 
</style>
<script type="text/javascript">
<!--
function flip(e) {
  current = e.style.display;
  if (current == 'block') {
    e.style.display = 'none';
    return 0;
  }
  else {
    e.style.display = 'block';
    return 1;
  }
}

function toggleBox(szDivId, elem, msg1, msg2)
{
  var res = -1;  if (document.getElementById) {
    res = flip(document.getElementById(szDivId));
  }
  else if (document.all) {
    // this is the way old msie versions work
    res = flip(document.all[szDivId]);
  }
  if(elem) {
    if(res == 0) elem.innerHTML = msg1; else elem.innerHTML = msg2;
  }

}

function toggleAllBoxes() {
  if (document.getElementsByTagName) {
    d = document.getElementsByTagName('div');
    for (i = 0; i < d.length; i++) {
      if (d[i].className == 'log') {
        flip(d[i]);
      }
    }
  }
}

// -->
</script>

</head>
<body>
<h2 align='center'>group包测试</h2><table border='1' align="center">
<tr>
<td>Tests passed/Failed/Skipped:</td><td>33/0/0</td>
</tr><tr>
<td>Started on:</td><td>Sat Jan 19 13:34:51 CST 2013</td>
</tr>
<tr><td>Total time:</td><td>2 seconds (2812 ms)</td>
</tr><tr>
<td>Included groups:</td><td></td>
</tr><tr>
<td>Excluded groups:</td><td></td>
</tr>
</table><p/>
<small><i>(Hover the method name to see the test class name)</i></small><p/>
<table width='100%' border='1' class='invocation-passed'>
<tr><td colspan='4' align='center'><b>PASSED TESTS</b></td></tr>
<tr><td><b>Test method</b></td>
<td width="30%"><b>Exception</b></td>
<td width="10%"><b>Time (seconds)</b></td>
<td><b>Instance</b></td>
</tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.addAnswer()'><b>addAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: org.hy.domain.group.GAnswer@103c29b[
  idGdiscuss=0
  goldenTag=false
  helperTag=false
  up=0
  childAnswers=<null>
  pid=<null>
  refFeedId=1
  refFeed=<null>
  id=1
  poster=GMember[id=1,group=1,数学之美,member=User[id=1,name=tom]]
  content=MultiContent[text=abcd,photo=<null>]
  visibility=<null>
  intime=2012-12-15
]</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.addGDiscuss()'><b>addGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: org.hy.domain.group.GDiscuss@1dbb27d[
  gWisdomTag=false
  postTime=Wed Dec 12 22:22:22 CST 2012
  solveTime=<null>
  nullOt=<null>
  answers=[org.hy.domain.group.GAnswer@a33ce2[
  idGdiscuss=0
  goldenTag=false
  helperTag=false
  up=0
  childAnswers=<null>
  pid=<null>
  refFeedId=1
  refFeed=<null>
  id=1
  poster=GMember[id=1,group=1,数学之美,member=User[id=1,name=tom]]
  content=MultiContent[text=abcd,photo=<null>]
  visibility=<null>
  intime=2012-12-15
], org.hy.domain.group.GAnswer@f221f6[
  idGdiscuss=0
  goldenTag=false
  helperTag=false
  up=0
  childAnswers=<null>
  pid=<null>
  refFeedId=1
  refFeed=<null>
  id=2
  poster=GMember[id=2,group=1,数学之美,member=User[id=2,name=jack]]
  content=MultiContent[text=hijk,photo=<null>]
  visibility=<null>
  intime=2012-12-15
]]
  fromTable=<null>
  ftRowid=<null>
  sharedPost=<null>
  title=<null>
  id=1
  poster=GMember[id=1,group=1,数学之美,member=User[id=1,name=tom]]
  content=MultiContent[text=abcdefg,photo=<null>]
  visibility=<null>
  intime=<null>
]</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.countGAnswer()'><b>countGAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: [I@1083717</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.countGAnswer()'><b>countGAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: [I@ee20fe</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.countGDiscuss()'><b>countGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.countGDiscuss()'><b>countGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 2</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.countWisdomedGDiscuss()'><b>countWisdomedGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.countWisdomedGDiscuss()'><b>countWisdomedGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 2</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createAnswerList()'><b>createAnswerList</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createDeleteDP()'><b>createDeleteDP</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createDeleteDPForAnswer()'><b>createDeleteDPForAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createDeleteDPWithException()'><b>createDeleteDPWithException</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createDiscussIds()'><b>createDiscussIds</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createDiscussList()'><b>createDiscussList</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createGid()'><b>createGid</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createGidAndPage()'><b>createGidAndPage</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createId()'><b>createId</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.createIdAndPage()'><b>createIdAndPage</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.deleteGAnswer()'><b>deleteGAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.deleteGAnswer()'><b>deleteGAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 2, 2</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.deleteGAnswer()'><b>deleteGAnswer</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 2, 1</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.deleteGDiscuss()'><b>deleteGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.deleteGDiscussWithException()'><b>deleteGDiscussWithException</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 2</td>
<td><div><pre>org.hy.util.BizException: 非法的删除操作
	at org.hy.util.AppConstant.&lt;clinit&gt;(AppConstant.java:7)
	at org.hy.service.group.GDiscussServiceImpl.deleteGDiscuss(GDiscussServiceImpl.java:48)
	at org.hy.service.group.GDiscussServiceImpl$$FastClassByCGLIB$$11c3e661.invoke(&lt;generated&gt;)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
	at org.hy.service.group.GDiscussServiceImpl$$EnhancerByCGLIB$$3942eada.deleteGDiscuss(&lt;generated&gt;)
	at org.hy.service.group.GDiscussServiceImplTest.deleteGDiscussWithException(GDiscussServiceImplTest.java:165)
	at org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:158)
... Removed 29 stack frames</pre></div><a href='#' onClick='toggleBox("stack-trace22041176", this, "Click to show all stack frames", "Click to hide stack frames")'>Click to show all stack frames</a>
<div class='stack-trace' id='stack-trace22041176'><pre>org.hy.util.BizException: 非法的删除操作
	at org.hy.util.AppConstant.&lt;clinit&gt;(AppConstant.java:7)
	at org.hy.service.group.GDiscussServiceImpl.deleteGDiscuss(GDiscussServiceImpl.java:48)
	at org.hy.service.group.GDiscussServiceImpl$$FastClassByCGLIB$$11c3e661.invoke(&lt;generated&gt;)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
	at org.hy.service.group.GDiscussServiceImpl$$EnhancerByCGLIB$$3942eada.deleteGDiscuss(&lt;generated&gt;)
	at org.hy.service.group.GDiscussServiceImplTest.deleteGDiscussWithException(GDiscussServiceImplTest.java:165)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
	at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:182)
	at org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:158)
	at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:194)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:128)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
	at org.testng.TestRunner.privateRun(TestRunner.java:767)
	at org.testng.TestRunner.run(TestRunner.java:617)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1203)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1128)
	at org.testng.TestNG.run(TestNG.java:1036)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
</pre></div></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findGDiscussWithGAnswerByGid()'><b>findGDiscussWithGAnswerByGid</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 2</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findGDiscussWithGAnswerByGid()'><b>findGDiscussWithGAnswerByGid</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 10</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findGDiscussWithGAnswerByGid()'><b>findGDiscussWithGAnswerByGid</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 20</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findGDiscussWithGAnswerById()'><b>findGDiscussWithGAnswerById</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 2</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findGDiscussWithGAnswerById()'><b>findGDiscussWithGAnswerById</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 10</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findGDiscussWithGAnswerById()'><b>findGDiscussWithGAnswerById</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 20</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findWisdomedGDiscuss()'><b>findWisdomedGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 2</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findWisdomedGDiscuss()'><b>findWisdomedGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 10</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.findWisdomedGDiscuss()'><b>findWisdomedGDiscuss</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: 1, 1, 20</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
<tr>
<td title='org.hy.service.group.GDiscussServiceImplTest.testGDiscussData()'><b>testGDiscussData</b><br>Test class: org.hy.service.group.GDiscussServiceImplTest<br>Parameters: org.hy.domain.group.GDiscuss@10cafa1[
  gWisdomTag=false
  postTime=Wed Dec 12 22:22:22 CST 2012
  solveTime=<null>
  nullOt=<null>
  answers=[org.hy.domain.group.GAnswer@1de7497[
  idGdiscuss=0
  goldenTag=false
  helperTag=false
  up=0
  childAnswers=<null>
  pid=<null>
  refFeedId=1
  refFeed=<null>
  id=1
  poster=GMember[id=1,group=1,数学之美,member=User[id=1,name=tom]]
  content=MultiContent[text=abcd,photo=<null>]
  visibility=<null>
  intime=2012-12-15
], org.hy.domain.group.GAnswer@1b88122[
  idGdiscuss=0
  goldenTag=false
  helperTag=false
  up=0
  childAnswers=<null>
  pid=<null>
  refFeedId=1
  refFeed=<null>
  id=2
  poster=GMember[id=2,group=1,数学之美,member=User[id=2,name=jack]]
  content=MultiContent[text=hijk,photo=<null>]
  visibility=<null>
  intime=2012-12-15
]]
  fromTable=<null>
  ftRowid=<null>
  sharedPost=<null>
  title=<null>
  id=1
  poster=GMember[id=1,group=1,数学之美,member=User[id=1,name=tom]]
  content=MultiContent[text=abcdefg,photo=<null>]
  visibility=<null>
  intime=<null>
]</td>
<td></td>
<td>0</td>
<td>org.hy.service.group.GDiscussServiceImplTest@1f6df4c</td></tr>
</table><p>
</body>
</html>